package lab02.test35;

public class Salesman extends Employee {

    int basesalary;
    int salesvolume;
    double royaltyrate;

    public Salesman(String name) {
        super(name);
        sdept = "销售人员";
    }

    //销售额，提成
    @Override
    double computeSalary() {
        return basesalary + salesvolume * royaltyrate;
    }
}
